<div>
    <div class="meta-section">
        <div class="meta-section-header">
            <h4 class="meta-section-header-title">控制面板</h4>
        </div>
        <div class="meta-section-container">
            <uib-tabset>
                <uib-tab heading="操作">
                    <div class="meta-secondary-section">
                        <div class="meta-secondary-section-header">
                            <i class="fa fa-user"></i><span>推荐人操作</span>
                            <p class="meta-status meta-adjust-status" ng-class="{
                              'meta-online-status': editCtrl.data.referenceId,
                              'meta-offline-status': !editCtrl.data.referenceId}">
                                {{editCtrl.data.referenceId?'已设置':'未设置'}}
                            </p>
                        </div>
                        <div class="meta-secondary-section-content">
                            <div class="meta-input-section">
                                <span class="meta-input-section-title">推荐人姓名: </span>
                                <div class="meta-input-section-control">
                                    <div class="meta-text">{{referenceCandidate}}</div>
                                </div>
                            </div>
                            <div class="meta-input-section">
                                <button class="btn btn-info meta-three-buttons" ng-click="openModel('lg','views/permission/modal/user.html', 'PartnerModelCtrl', {type: 'reference'})">
                                    查看
                                </button>
                                <button class="btn btn-success meta-three-buttons" ng-click="openModel('sm','views/permission/modal/confirm.html', 'AssignModelCtrl', {name: 'reference'}, 3)">
                                    委派
                                </button>
                                <button class="btn btn-warning meta-three-buttons" style="margin-right:0;" ng-click="resetAssign()">
                                    重置
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="meta-secondary-section">
                        <div class="meta-secondary-section-header">
                            <i class="fa fa-money"></i><span>商务金操作</span>
                        </div>
                        <div class="meta-secondary-section-content">
                            <div class="meta-input-section">
                                <span class="meta-input-section-title">商务金数额: </span>
                                <div class="meta-input-section-control">
                                    <div class="meta-input">
                                        <input class="form-control" type="number" ng-model="money.float" />
                                    </div>
                                </div>
                            </div>
                            <div class="meta-input-section">
                                <span class="meta-input-section-title">操作原因: </span>
                                <div class="meta-input-section-control">
                                    <div class="meta-input">
                                        <input class="form-control" type="text" ng-model="money.cause" />
                                    </div>
                                </div>
                            </div>
                            <div class="meta-input-section">
                                <button class="btn btn-success meta-three-buttons" ng-click="saveMoney()" style="margin-left:33.5%">确定</button>
                                <button class="btn btn-warning meta-three-buttons" ng-click="resetMoney()">重置</button>
                            </div>
                        </div>
                    </div>
                    <div class="meta-secondary-section meta-last">
                        <div class="meta-secondary-section-header">
                            <i class="fa fa-edit"></i><span>其他操作</span>
                        </div>
                        <div class="meta-secondary-section-content">
                            <div class="meta-input-section">
                                <button class="btn btn-success meta-three-buttons" ui-sref="meta.permission.demand.user.list({page: 1, search: 'publisherId', value: editCtrl.data.id})" ng-disabled="editCtrl.data.demand==0">用户需求
                                </button>
                                <button class="btn btn-success meta-three-buttons" ui-sref="meta.permission.demand.cooperation.list({page: 1, search: 'publisherId', value: editCtrl.data.id})" ng-disabled="editCtrl.data.cooperation==0">合作意向
                                </button>
                                <button class="btn btn-success meta-three-buttons" ui-sref="meta.permission.technology.technology.list({page: 1, search: 'publisherId', value: editCtrl.data.id})" ng-disabled="editCtrl.data.technology==0">技术方案
                                </button>
                            </div>
                            <div class="meta-input-section">
                                <button class="btn btn-success meta-three-buttons" ui-sref="meta.permission.technology.solution.list({page: 1, search: 'publisherId', value: editCtrl.data.id})" ng-disabled="editCtrl.data.solution==0">解决方案
                                </button>
                                <button class="btn btn-warning meta-three-buttons" ng-click="changeControlState('updateRole')">升级权限
                                </button>
                                <button class="btn btn-danger meta-three-buttons" ng-click="toBeContinued('失败','叶老师暂时没有提供接口')">封号
                                </button>
                            </div>
                            <div class="meta-input-section">
                                <button class="btn btn-success meta-three-buttons" ui-sref="meta.permission.research.space.detail({id: editCtrl.data.talent.id})" ng-disabled="editCtrl.data.talentOpened==false">查看主页
                                </button>
                                <button class="btn btn-success meta-three-buttons" ng-disabled="editCtrl.data.talentOpened!=false" ng-click="changeControlState('createTalent')">创建主页
                                </button>
                                <button class="btn meta-three-buttons" ng-class="{true: 'btn-danger', false: 'btn-success'}[editCtrl.data.talent.online==true]" ng-click="changeControlState('talentOnline')" ng-disabled="editCtrl.data.talentOpened!=true">
                                    {{editCtrl.data.talent.online==true?'保密主页':'公开主页'}}
                                </button>
                            </div>
                        </div>
                    </div>
                </uib-tab>
                <uib-tab heading="信息">
                    <div class="meta-secondary-section">
                        <div class="meta-secondary-section-header">
                            <i class="fa fa-th-list"></i><span>基本信息</span>
                        </div>
                        <div class="meta-secondary-section-content">
                            <div class="meta-input-section meta-short">
                                <span class="meta-input-section-title">注册时间: </span>
                                <div class="meta-input-section-control">
                                    <div class="meta-text">
                                        {{editCtrl.data.createdAt | date:"yyyy-MM-dd HH:mm"}}
                                    </div>
                                </div>
                            </div>
                            <div class="meta-input-section meta-short">
                                <span class="meta-input-section-title">登录时间: </span>
                                <div class="meta-input-section-control">
                                    <div class="meta-text">
                                        {{editCtrl.data.stat.lastLoginAt==null?'还未登录':editCtrl.data.stat.lastLoginAt | date:"yyyy-MM-dd HH:mm"}}
                                    </div>
                                </div>
                            </div>
                            <div class="meta-input-section meta-short">
                                <span class="meta-input-section-title">科研人员: </span>
                                <div class="meta-input-section-control">
                                    <div class="meta-text">
                                        {{editCtrl.data.research?'是':'否'}}
                                    </div>
                                </div>
                            </div>
                            <div class="meta-input-section meta-short">
                                <span class="meta-input-section-title">登录频率: </span>
                                <div class="meta-input-section-control">
                                    <div class="meta-text">
                                        {{editCtrl.data.stat.loginsInMonth}}次／月
                                    </div>
                                </div>
                            </div>
                            <div class="meta-input-section meta-short">
                                <span class="meta-input-section-title">用户需求: </span>
                                <div class="meta-input-section-control">
                                    <div class="meta-text">
                                        {{editCtrl.data.demand}}
                                    </div>
                                </div>
                            </div>
                            <div class="meta-input-section meta-short">
                                <span class="meta-input-section-title">合作意向: </span>
                                <div class="meta-input-section-control">
                                    <div class="meta-text">
                                        {{editCtrl.data.cooperation}}
                                    </div>
                                </div>
                            </div>
                            <div class="meta-input-section meta-short">
                                <span class="meta-input-section-title">技术方案: </span>
                                <div class="meta-input-section-control">
                                    <div class="meta-text">
                                        {{editCtrl.data.technology}}
                                    </div>
                                </div>
                            </div>
                            <div class="meta-input-section meta-short">
                                <span class="meta-input-section-title">解决方案: </span>
                                <div class="meta-input-section-control">
                                    <div class="meta-text">
                                        {{editCtrl.data.solution}}
                                    </div>
                                </div>
                            </div>
                            <div class="meta-input-section meta-short">
                                <span class="meta-input-section-title">有无主页: </span>
                                <div class="meta-input-section-control">
                                    <div class="meta-text">
                                        {{editCtrl.data.talentOpened?'开通':'未开通'}}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </uib-tab>
                <uib-tab heading="备注">
                    <div class="tab-comment" ng-show='!controlTab' ui-view="comment"></div>
                </uib-tab>
            </uib-tabset>
        </div>
    </div>
</div>
